home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1997 August / Macworld (1997-08).dmg / Serious Demos / Crimson Demo / Crimson Basic Manual / Crimson Basic Manual.rsrc / TEXT_1700_Prop,Meth,Evt Reference.txt < prev    next >
Text File  |  1997-06-17  |  17KB  |  348 lines

  1.     
  2. Window    
  3.  
  4. Properties
  5.  
  6. Name                        Values                           Description
  7. Title                        Any string                     Window Title.
  8. Enabled                    True/False
  9. Visible                     True/False
  10. UseColour                True/False                     Does window use  
  11.                                                                      background colour.
  12. ColourRed                Integer                           Red  RGB value.
  13. ColourGreen             Integer                           Green RGB value.
  14. ColourBlue               Integer                           Blue RGB value.
  15. Height                      Integer
  16. Width                       Integer
  17. PositionX                 Integer
  18. PositionY                 Integer
  19. HasCloseBox            True/False                     Design time only. Does 
  20.                                                                      Window have a close box.
  21. ClickToFront            True/False                    Window behaviour. Does click
  22.                                                                      on Window activate control
  23.                                                                      under mouse (true) or just
  24.                                                                      bring window to front (false).
  25.  
  26. Methods
  27.  
  28. Name                        Parameters                     Description
  29. OpenWindow             None                                Opens the Window.
  30. CloseWindow            None                                Closes the Window.
  31. ShowWindow            None                                Displays an invisible
  32.                                                                         (hidden) Window.
  33. HideWindow              None                                Hides a Window.
  34.  
  35. Events
  36.  
  37. Name                        Parameters                      Description
  38. Click                        None                                 Click.
  39. DClick                      None                                 Double Click.
  40. MouseDown               X position,Y position        Mouse Down
  41. MouseUp                   X position,Y position        Mouse Up.
  42. OnClose                    None                                 Fired when Window is
  43.                                                                         closed using Windows 
  44.                                                                         Close box.
  45. OnMenu                     menu_id,menu_item         Fired when user picks a
  46.                                                                         menu item whilst this
  47.                                                                         window is active.
  48. GotFocus                  None                                 Fired when this Window
  49.                                                                         becomes active
  50. ----------------------------------------------
  51. Button    
  52.  
  53. Properties
  54.  
  55. Name                         Values                           Description
  56. Caption                     any string                      Caption in centre of button.
  57. Enabled                     True/False
  58. Visible                      True/False
  59. Appearance               0=Flat                            Button may have a standard
  60.                                  1=3D                              Flat appearance or a 3D 
  61.                                                                        border.
  62. Height                       Integer
  63. Width                        Integer
  64. PositionX                  Integer
  65. PositionY                  Integer
  66. ColourRequired         True/False                      Design Time only. Standard 
  67.                                                                        white or custom colour for 
  68.                                                                        centre and frame.
  69. FillColourRed            Integer                           Design Time only. RGB red 
  70.                                                                        value.
  71. FillColourGreen         Integer                           Design Time only. RGB green 
  72.                                                                        value.
  73. FillColourBlue           Integer                           Design Time only. RGB blue 
  74.                                                                         value.
  75. FrameColourRed        Integer                           Design Time only. RGB red 
  76.                                                                         value.
  77. FrameColourGreen     Integer                           Design Time only. RGB green 
  78.                                                                         value.
  79. FrameColourBlue       Integer                           Design Time only. RGB blue 
  80.                                                                         value.
  81.  
  82. Methods
  83. None.
  84.  
  85. Events
  86.  
  87. Name                        Parameters                      Description
  88. Click                        None                                 Click.
  89. DClick                      None                                 Double Click.
  90. MouseDown               X position,Y position        Mouse Down
  91. MouseUp                   X position,Y position         Mouse Up.
  92.  
  93.  
  94. ----------------------------------------------
  95. ListBox    
  96.  
  97. Properties
  98.  
  99. Name                         Values                           Description
  100. Enabled                     True/False
  101. Appearance               0=Flat                            ListBox may have a standard 
  102.                                  1=3D                              Flat appearance or a 3D 
  103.                                                                        insert. 
  104. MultiSel                    True/False                     Can multiple items in the
  105.                                                                        List Box be selected at the
  106.                                                                        same time.
  107. Height                       Integer                           Design Time only.
  108. Width                        Integer                           Design Time only.
  109. PositionX                  Integer                           Design Time only.
  110. PositionY                  Integer                           Design Time only.
  111.  
  112. Methods
  113.  
  114. Name                        Parameters                           Description
  115. SetRow                    in:row number (Integer)         Set a row in the List Box
  116.                                 value (String)                        to the given value.
  117. InsertRow                In:row number (Integer)         Insert a row in the List
  118.                                 value (String)                        Box with the given value.
  119. GetRow                    In:row number (Integer)         Get the string contained
  120.                                 Out: value (String)                 in a givenrow.
  121. IsSelected               In:row number (Integer)         Returns selected state
  122.                                 Out: True/False                     of row.
  123. GetSelected             In:row number (Integer)         Finds the first selected
  124.                                 Out: row number (Integer)      row after but including 
  125.                                                                              the given row.
  126. DeleteRow               In: row number (integer)        Deletes count rows from
  127.                                 count (Integer)                      the List Boxstarting at 
  128.                                                                              the given row.
  129. SetSelected             In: row number,True/False    Sets a row in the listbox 
  130.                                                                              to either Selected or 
  131.                                                                              Unselected.
  132.  
  133. Events
  134.  
  135. Name                        Parameters                           Description
  136. Click                        None                                       Click.
  137. DClick                      None                                       Double Click.
  138. MouseDown              X position,Y position              Mouse Down
  139. MouseUp                   X position,Y position              Mouse Up.
  140. OnKey                      key pressed (ascii value)        Reports the ascii value 
  141.                                                                               of a key pressed while 
  142.                                                                               the ListBox is active.
  143.                                AutoInd                                   Set to True if event was 
  144.                                                                               fired by the Operating 
  145.                                                                               System in response to a 
  146.                                                                               key being held down.
  147. ----------------------------------------------
  148. Rectangle    
  149.  
  150. Properties
  151.  
  152. Name                         Values                            Description
  153. Enabled                     True/False
  154. Visible                     True/False
  155. Appearance               0=Flat                             Standard Flat appearance.
  156.                                  1=3D                               3D border.
  157.                                  2=ColourFill                    Filled coloured rectangle.
  158.                                  3=ColourBorder               Flat but coloured.
  159. Height                       Integer
  160. Width                        Integer
  161. PositionX                  Integer
  162. PositionY                  Integer
  163. ColourRed                 Integer                            Red part of RGB colour.
  164. ColourGreen              Integer                            Green part of RGB colour.
  165. ColourBlue                Integer                            Blue part of RGB colour.
  166.  
  167. Methods
  168. None.
  169.  
  170. Events
  171.  
  172. Name                        Parameters                      Description
  173. Click                        None                                 Click.
  174. DClick                      None                                 Double Click.
  175. MouseDown              X position,Y position        Mouse Down
  176. MouseUp                  X position,Y position         Mouse Up.
  177.  
  178. ---------------------------------------------
  179. Static Text    
  180.  
  181. Properties
  182.  
  183. Name                         Values                         Description
  184. Visible                      True/False
  185. Height                       Integer
  186. Width                        Integer
  187. PositionX                  Integer
  188. PositionY                  Integer
  189. TextJustify               Left/Right/Centre       Design Time only.
  190. Value                        Any string                    Design Time only. Displayed 
  191.                                                                      string.
  192.  
  193. Methods
  194. None.
  195.  
  196. Events
  197. None.
  198.  
  199. ---------------------------------------------
  200. Colour Icon Button    
  201.  
  202. Properties
  203.  
  204. Name                         Values                          Description
  205. Enabled                     True/False
  206. Visible                     True/False
  207. PositionX                  Integer
  208. PositionY                  Integer
  209. State                        0=Off/1=On                   On/Off state of button
  210. AutoState                 True/False                    If True, button displays On 
  211.                                                                       state when pressed, 
  212.                                                                       Otherwise set manually 
  213.                                                                       with State property.
  214. Off_Cicn_Id              Integer                          Design Time only.Resource 
  215.                                                                       id of 'cicn' in Off state.
  216. On_Cicn_id                Integer                         Design Time only.Resource 
  217.                                                                       id of 'cicn' in On state.
  218.  
  219. Methods
  220. None.
  221.  
  222. Events
  223.  
  224. Name                        Parameters                     Description
  225. Click                        None                                Click.
  226. DClick                      None                                Double Click.
  227. MouseDown              X position,Y position        Mouse Down
  228. MouseUp                   X position,Y position        Mouse Up.
  229.  
  230. ----------------------------------------------
  231. Check Box    
  232.  
  233. Properties
  234.  
  235. Name                         Values                           Description
  236. Caption                     any string                      Caption of Check Box.
  237. Enabled                     True/False
  238. Visible                     True/False
  239. Height                       Integer
  240. Width                        Integer
  241. PositionX                  Integer
  242. PositionY                  Integer
  243. Value                        Integer                          On/Off state of Check Box.
  244.  
  245. Methods
  246. None.
  247.  
  248. Events
  249.  
  250. Name                        Parameters                    Description
  251. MouseDown              X position,Y position       Mouse Down
  252.  
  253. ----------------------------------------------
  254. Radio Button    
  255.  
  256. Properties
  257.  
  258. Name                         Values                           Description
  259. Caption                     any string                      Caption of Radio Button.
  260. Enabled                     True/False
  261. Visible                      True/False
  262. Height                       Integer
  263. Width                        Integer
  264. PositionX                  Integer
  265. PositionY                  Integer
  266. Value                        Integer                          On/Off state of Radio Button.
  267. Radio_Group             Integer                          Design Time only. Group to 
  268.                                                                       which Radio Button belongs. 
  269.                                                                       Setting a Radio Button on 
  270.                                                                       will set all others in the 
  271.                                                                       same group off.
  272.  
  273. Methods
  274. None.
  275.  
  276. Events
  277.  
  278. Name                         Parameters                     Description
  279. MouseDown               X position,Y position       Mouse Down
  280.      
  281. ---------------------------------------------
  282. Editable Text    
  283.  
  284. Properties
  285.  
  286. Name                         Values                           Description
  287. Enabled                     True/False
  288. Visible                      True/False
  289. Appearance               Integer                           Standard Flat appearance 
  290.                                                                        or 3D insert.
  291.                                                                        Design Time only.
  292. Height                       Integer                           Design Time only.
  293. Width                        Integer                           Design Time only.
  294. PositionX                  Integer                           Design Time only.
  295. PositionY                  Integer                           Design Time only.
  296. DataType                  Any/Integer/Float          Design Time only
  297.  
  298. Methods
  299. None.
  300.  
  301. Events
  302.  
  303. None.
  304. ---------------------------------------------
  305. Picture    
  306.  
  307. Properties
  308.  
  309. Name                         Values                        Description
  310. Enabled                     True/False
  311. Visible                     True/False
  312. Height                       Integer                           
  313. Width                        Integer                            
  314. PositionX                  Integer                           
  315. PositionY                  Integer 
  316. PICT_id                     Integer                       Id of PICT resource.                           
  317.  
  318. Methods
  319. None.
  320.  
  321. Events
  322.  
  323. Name                         Parameters                 Description
  324. Click                         None                            Click
  325. DClick                       None                            Double Click
  326.  
  327. Pop Up Menu    
  328.  
  329. Properties
  330.  
  331. Name                         Values                        Description
  332. Enabled                     True/False
  333. Visible                     True/False
  334. Height                       Integer                           
  335. Width                        Integer                            
  336. PositionX                  Integer                           
  337. PositionY                  Integer 
  338. Value                        Integer                       Currently selected entry.
  339.  
  340. Methods
  341. None.
  342.  
  343. Events
  344.  
  345. Name                         Parameters                 Description
  346. MouseDown               X position,Y position       Mouse Down
  347. MouseUp                    X position,Y position       Mouse Up
  348.